package com.zyx.springmvc.hello.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Yaxi.Zhang
 * @since 2021/9/13 10:08
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String index() {
        return "index";
    }

    @RequestMapping(value = "/target")
    public String toTarget() {
        return "target";
    }

}
